﻿#ifndef PST_THREEDCLOUDMAPSELECTDATADIALOG_H
#define PST_THREEDCLOUDMAPSELECTDATADIALOG_H

#include <QDialog>
#include "ui_ThreeDCloudMapSelectDataDialog.h"
#include "BaseWidget/IdaDialogFrame.h"
#include "InfomationGraph3DBasical.h"
namespace pst
{
    class ThreeDCloudMapSelectDataDialog : public IdaDialogFrame
    {
        Q_OBJECT

    public:
        ThreeDCloudMapSelectDataDialog(QWidget* parent = nullptr);
        ~ThreeDCloudMapSelectDataDialog();

        void setValueNameList(const QList<QString>& valueNameList);
        QList<QString> getValueNameList();

        void setInfomationGraph3DBasical(InfomationGraph3DBasical* info);
        InfomationGraph3DBasical* getInfomationGraph3DBasical();

        void setIsOpenNewWindow(bool isOpenNewWindow)
        {
            m_isOpenNewWindow = isOpenNewWindow;
        }

    signals:
        void signal_sentChosenValueNameIndex(InfomationGraph3DBasical* info, bool isOpenNewWindow);

    public slots:
        void slot_buttonBox_accepted();
        void slot_buttonBox_rejected();

    private:
        Ui::ThreeDCloudMapSelectDataDialog ui;
        QList<QString> m_valueNameList;
        InfomationGraph3DBasical* m_info;
        bool m_isOpenNewWindow;

    };
}
#endif
